import request from '@/utils/request'

// 查询工作站列表
export function listTimeperiod(query) {
  return request({
    url: '/business/timeperiod/list',
    method: 'get',
    params: query
  })
}

// 查询工作站详细
export function getTimeperiod(id) {
  return request({
    url: '/business/timeperiod/' + id,
    method: 'get'
  })
}

// 新增工作站
export function addTimeperiod(data) {
  return request({
    url: '/business/timeperiod',
    method: 'post',
    data: data
  })
}

// 修改工作站
export function updateTimeperiod(data) {
  return request({
    url: '/business/timeperiod',
    method: 'put',
    data: data
  })
}

// 删除工作站
export function delTimeperiod(id) {
  return request({
    url: '/business/timeperiod/' + id,
    method: 'delete'
  })
}

// 导出工作站
export function exportTimeperiod(query) {
  return request({
    url: '/business/timeperiod/export',
    method: 'get',
    params: query
  })
}